package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.QualityQarTaskQuery;
import cc.comac.mom.util.ResultBean;

@FeignClient(name = "mom-qar-srv")
public interface QualityQarTaskQueryService {

	@RequestMapping(value = "/p/cs/QualityQarTaskQueryService/selectByFields", method = RequestMethod.POST)
	public ResultBean selectByFields(@RequestBody QualityQarTaskQuery qualityQarTaskQuery);

	// 当手动生成qar任务时，进行任务合拼
	@RequestMapping(value = "/p/cs/QualityQarTaskQueryService/qarTaskMerge", method = RequestMethod.POST)
	public ResultBean qarTaskMerge(@RequestBody List<QualityQarTaskQuery> list);

	// 当手动生成qar任务时，进行任务单个的生成
	@RequestMapping(value = "/p/cs/QualityQarTaskQueryService/qarTaskSingleInsert", method = RequestMethod.POST)
	public ResultBean qarTaskSingleInsert(@RequestBody List<QualityQarTaskQuery> list);

	// 当手动生成qar任务时，进行任务单个的生成
	@RequestMapping(value = "/p/cs/QualityQarTaskQueryService/selectMyselfByFields", method = RequestMethod.POST)
	public ResultBean selectMyselfByFields(@RequestBody QualityQarTaskQuery qualityQarTaskQuery);
}
